package com.lwj.test.gof;
public class Singleton {  
    private static class SingletonHolder {  
        public static Singleton resource = new Singleton();  
    }  
    public static Singleton getResource() {  
        return  SingletonHolder.resource ;  
    }  
      
    private Singleton(){  
          
    }  
} 